package com.xxchat.entity.enums;

import lombok.Getter;

/**
 * @author Waicc
 */

@Getter
public enum BeautyAccountStatusEnum {
    NO_USED(0, "未使用"),
    USED(1, "已使用");

    private final Integer status;
    private final String desc;

    public static BeautyAccountStatusEnum getByStatus(Integer status) {
        for (BeautyAccountStatusEnum e : BeautyAccountStatusEnum.values()) {
            if (e.status == status) {
                return e;
            }
        }
        return null;
    }

    private BeautyAccountStatusEnum(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

}
